//导入两个函数  create 创建  slice 切片       configure 配置  store 仓库 存储 商店
import {configureStore} from '@reduxjs/toolkit'
// 导入 slice
import countReducer from './slices/countSlice';
import zanReducer from './slices/zanSlice';
import todoSlice from './slices/todoSlice';

//配置仓库对象
let store = configureStore({
  reducer: {
    count: countReducer,
    zan: zanReducer,
    todo: todoSlice
  } // slice.reducer 保存着 reducer 函数
});

//暴露 store 对象
export default store;


